import { request } from "@/utils/request.js";

// 会员金额
export function coinAlpay() {
	return request({
		url: '/collectionAlpay'
	});
}

// 创建H5支付订单
export function createH5PaymentOrder(params) {
	return request({
		url: '/api/pay/createOrder',
		method: 'POST',
		data: params
	});
}

// 检查支付状态
export function checkPaymentStatus(orderNo) {
	return request({
		url: '/api/pay/checkStatus',
		method: 'GET',
		data: { orderNo }
	});
}

// 更新会员状态
export function updateMemberStatus(params) {
	return request({
		url: '/portal/openId/updateStatus',
		method: 'GET',
		data: params
	});
}

// 处理推荐分成
export function handleReferralBonus(params) {
	return request({
		url: '/portal/openId/money',
		method: 'GET',
		data: params
	});
}